<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.bean.Nba"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'NBAListXiangQ.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <jsp:useBean id="ss" class="com.service.NbaService" scope="request"/>
 
  <body>
  	
    <form  method="post">
    	<input id="name" name="NPlayer" placeholer="按姓名查询">
    	<input type="submit" value="查询">
     <%
 	 String NPlayer = request.getParameter("NPlayer");
 	 System.out.println(NPlayer);
  	ArrayList<Nba> s = (ArrayList<Nba>)ss.selectByName("NPlayer");
  	if(s!=null&&s.size()>0){
  	 %>
    <table border="1" cellspacing="0" >
    	<tr align="center">
    		<p><stront>编号：</stront><span><%=s.get(0).getNQiudb()%></span></p>
    		<p><stront>球员：</stront><span><%=s.get(0).getNPlayer()%></span></p>
    		<p><stront>球队：</stront><span><%=s.get(0).getNTeam()%></span></p>
    		<p><stront>场次：</stront><span><%=s.get(0).getNChangc()%></span></p>
    		<p><stront>先发：</stront><span><%=s.get(0).getNXianf()%></span></p>
    		<p><stront>助功：</stront><span><%=s.get(0).getNZhug()%></span></p>
    		<p><stront>分钟：</stront><span><%=s.get(0).getNMinute()%></span></p>
    		<p><stront>三分命中率：</stront><span><%=s.get(0).getNThreepiont()%></span></p>
    		<p><stront>罚球：</stront><span><%=s.get(0).getNFaq()%></span></p>
    		<p><stront>抢断：</stront><span><%=s.get(0).getNQiangd()%></span></p>
    		<p><stront>失误：</stront><span><%=s.get(0).getNError()%></span></p>
    	</tr>
    </table>
    </form>
  </body>
  <%} %>
</html>
